function StageAssistant() {
}

StageAssistant.prototype.setup = function() {
	this.controller.pushScene({name: "main", disableSceneScroller: true});
	this.controller.setWindowOrientation("up");
};

StageAssistant.prototype.handleCommand = function(event)
{
	switch (event.type)
	{
		// enable default items here.
		case Mojo.Event.commandEnable:
			switch (event.command)
			{
				case Mojo.Menu.prefsCmd:
					event.stopPropagation();
					break;
				case Mojo.Menu.helpCmd:
					event.stopPropagation();
					break;
			}
			break;
		// handle items here.
		case Mojo.Event.command:
			switch (event.command)
			{
				case Mojo.Menu.prefsCmd:
					this.controller.pushScene("prefs");
					break;
				case Mojo.Menu.helpCmd:
					var openURL = new Mojo.Service.Request
					(
						'palm://com.palm.applicationManager',
						{
							method: 'open',
							parameters:
							{
								id: 'com.palm.app.browser',
								params: {target: 'http://code.google.com/p/webos-blogger/'}
							}
						}
					);
					break;
			}
			break;
	}
};